package server.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import server.domain.Standard;

public interface StandardMapper {
	Integer searchTotal(@Param("name")String name);

	List<Standard> search(
			@Param("query")String query,
			@Param("start")Integer start,
			@Param("size")Integer size);

	int delBatch(Integer[] ids);

	@Select("select count(ID) from standard")
	int getCount();

    int deleteByPrimaryKey(Integer id);

    int insert(Standard record);

    Standard selectByPrimaryKey(Integer id);

    List<Standard> selectAll();

    int updateByPrimaryKey(Standard record);

	List<Standard> selectPage(@Param("start")int start, @Param("size")Integer size);




}